package api;

public class Day02扩展练习 {
    public static void main(String[] args) {
        String path = "http://localhost:8088/myweb/reg?name=zhangsan&pwd=123456&nick=san&age=16";
        String [] parameter = path.split("[?]");
        parameter = parameter[1].split("&");
        for (int i = 0; i < parameter.length; i++) {
            String [] s = parameter[i].split("=");
            System.out.println("参数名："+s[0]+"参数值："+s[1]);
        }
    }
}
